package kt.bean

data class MapLayerBean(var level:String, var col:String,var row:String, var images: ByteArray) {
    override fun equals(other: Any?): Boolean {
        if (this === other) return true
        if (javaClass != other?.javaClass) return false

        other as MapLayerBean

        if (level != other.level) return false
        if (col != other.col) return false
        if (row != other.row) return false
        if (!images.contentEquals(other.images)) return false

        return true
    }

    override fun hashCode(): Int {
        var result = level.hashCode()
        result = 31 * result + col.hashCode()
        result = 31 * result + row.hashCode()
        result = 31 * result + images.contentHashCode()
        return result
    }

    override fun toString(): String {
        return "MapLayerBean(level='$level', col='$col', row='$row', images=${images.size})"
    }


}